<tr>
{{foreach $input as $data}}
    <td class='{{$data.id}}'>{{if $data.label}}
        <label for='{{$data.id}}'>{{$data.label}}</label>
    {{/if}}

    {{if $data.type == 'select'}}
        <select name='{{$data.name}}' id='{{$data.id}}'>
        {{html_options values=$data.options_id output=$data.options selected=$data.value}}
        </select>
    {{else}}
        <input type='{{$data.type}}' id='{{$data.id}}' name='{{$data.name}}' value='{{$data.value}}'/>
    {{/if}}
    </td>
{{/foreach}}
</tr>
   